package team.scau.laboratory_repair.modules.po;
import javax.persistence.*;

import lombok.*;
import team.scau.laboratory_repair.common.base.BaseModel;

import java.sql.Timestamp;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "lab_repair_classify")
public class RepairClassify extends BaseModel {

  @Builder
  public RepairClassify(Long id, Timestamp createTime, Timestamp updateTime, Timestamp deleteTime, Boolean valid, Long version, String name, Long locationId) {
    super(id, createTime, updateTime, deleteTime, valid);
    this.name = name;
    this.locationId = locationId;
  }

  @Column
  private String name;
  @Column
  private Long locationId;
}
